package fr.esiag.isidis.epp.search;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import fr.esiag.isidis.epp.generatedClasses.PointCdc;

public class PointCdcRowMapperindividual  implements RowMapper<Object>{
	
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		PointCdc cdc = new PointCdc();
		cdc.setDateConso(rs.getInt("PDATE"));
		cdc.setHeureConso(rs.getInt("PHOUR"));
		cdc.setPuissanceSoutire(rs.getFloat("POWER"));
		return cdc;
	}
}
